<div>
	<form action="/new/algo/?pid={{ project.id }}&type={{ type }}" method="POST" enctype="multipart/form-data" onsubmit='$(this).find(".status").removeClass("hidden");return true;'>
		<div class='formfieldcontainer'>
                        <label class="fieldlabel" style="width:150px;">Algo name :</label>
                	<input name="name" required="required" />
		</div>

		<div class='formfieldcontainer'>
                        <label class="fieldlabel" style="width:150px;">Upload Algo Code :</label>
                        <input type="file" name="codefile" required="required" />
                </div>

                <div class='formfieldcontainer'>
                        <label class='fieldlabel' style="width:150px;">Privacy Settings : </label>
                        <input type="radio" name="permission" value="0" checked>Private
                        <input type="radio" name="permission" value="1">Read to all
                        <input type="radio" name="permission" value="2">Open Source
                </div>

		<div class='formfieldcontainer'>
			<input type="submit" value="Upload" class="button-base button-blue button-small" style="margin-left:50px;" />
		</div>
	
		<div class="hidden status highlight ui-state-highlight" style='margin-top:5px;'>
                        Uploading... Do not close the window in the middle of the uploading
                </div>
	</form>
</div>
